package com.niodata.dp.monitor.sharelib.entity.file;

import java.io.Serializable;

public class SchedulingStrategy implements Serializable {

  private static final long serialVersionUID = -3492824685504873563L;

  //cron 表达式
  String cronExpression;
  //是否开启自动检查
  boolean autoCheck;
  //每次检查的间隔时间，单位：秒
  int checkInterval;
  //检查超期时间，单位：秒
  int maxTimeSpan;


  public String getCronExpression() {
    return cronExpression;
  }

  public void setCronExpression(String cronExpression) {
    this.cronExpression = cronExpression;
  }

  public boolean isAutoCheck() {
    return autoCheck;
  }

  public void setAutoCheck(boolean autoCheck) {
    this.autoCheck = autoCheck;
  }

  public int getCheckInterval() {
    return checkInterval;
  }

  public void setCheckInterval(int checkInterval) {
    this.checkInterval = checkInterval;
  }

  public int getMaxTimeSpan() {
    return maxTimeSpan;
  }

  public void setMaxTimeSpan(int maxTimeSpan) {
    this.maxTimeSpan = maxTimeSpan;
  }

  @Override
  public String toString() {
    return "SchedulingStrategy{"
          + "cronExpression='" + cronExpression + '\''
          + ", autoCheck=" + autoCheck
          + ", checkInterval=" + checkInterval
          + ", maxTimeSpan=" + maxTimeSpan
          + '}';
  }
}
